package io.iamting93.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author boting.guo
 * @date 2021/12/2 14:53
 */

@FeignClient(value = "service-code", path = "code")
public interface CodeFeign {

    @GetMapping("/validate/{email}/{code}")
    int validateCode(@PathVariable("email") String emailAddress,
                            @PathVariable("code") String code);
}
